<template>
  <header>
    <div>logo</div>
    <ul>
      <li>
        导航1
      </li>
      <li>
        导航2
      </li>
    </ul>
  </header>
</template>

<script lang="ts">
  export default {
    name: "TopNav"
  };
</script>

<style lang="scss" scoped>
  header {
    display: flex;
    justify-content: space-between;
    padding: 32px 0 32px 32px;
    background: rgb(57, 170, 248);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 1;

    ul {
      display: flex;

      li {
        margin-right: 32px;
        @media (max-width: 500px) {
          margin-right: 16px;
        }
      }
    }

    @media (max-width: 500px) {
      padding: 16px 0 16px 16px;
    }
  }
</style>